package vn.com.demand.lux.view.contentprovider;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import vn.com.demand.lux.model.InterestSummaryBean;

public class InterestSummaryContentProvider implements IStructuredContentProvider{

	@SuppressWarnings("unchecked")
	public Object[] getElements(Object inputElement) {
		if (inputElement instanceof List) {
			List<InterestSummaryBean> list = (List<InterestSummaryBean>) inputElement;
			return list.toArray(new InterestSummaryBean[0]);
		}
		return null;
	}

	public void dispose() {
	}

	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	}

}
